import pandas as pd
import numpy as np

df = pd.DataFrame(np.array([[1,2,3],[4,5,6]]))
print(df)

# 设置索引
df_set = df.set_index(1)
print(df_set)

# 重置索引
df_reset = df.reset_index(drop=True)
print(df_reset)